#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<double> sample;
    sample.push_back(0.0);
    sample.push_back(1.1);
    sample.push_back(2.2);
    sample.push_back(3.3);
    sample.push_back(4.4);

    cout << "The capacity of the vector is " << sample.capacity() << endl;

    for (int i = 0; i < sample.size(); i++)
        cout << sample[i] << " ";
    cout << endl;

    return 0;
}